package com.qf.dao;



import com.qf.entity.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    //    登入功能
    User loginUser(String username, String password) throws SQLException;


    //    注册及添加功能
    int addUser(String uname, String password, String sex, String address, String phone) throws SQLException;

    User selectUserById(Integer uid)throws SQLException;


    int deleteUid(int uid) throws SQLException;

    int updateUser(User user) throws SQLException;

}
